package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    //查询此日期是否已经预约过
    Long findCountByOrderDate(Date orderDate);

    //根据日期更新可预约人数
    void update(OrderSetting orderSetting);

    //新增预约设置
    void save(OrderSetting orderSetting);

    //根据日期查询预约设置数据
//    List<OrderSetting> getOrderSettingByMonth(Map map);
    List<Map> getOrderSettingByMonth(String date);

    //通过日期查询预约设置信息
    OrderSetting findOrderSettingByOrderDate(Date date);
    //根据日期更新已预约人数
    void updateReservationsByOrderDate(OrderSetting orderSetting);
}
